class CreateArticles < ActiveRecord::Migration
  def self.up
    create_table :articles do |t|
      t.string :title
      t.text :body
      t.references :user
      t.string :format_type
      t.boolean :deleted_flag, :default => false
      t.string :permissions
      t.string :comment_permissions

      t.timestamps
    end
  end

  def self.down
    drop_table :articles
  end
end
